/*
 * MIT License
 *
 * Copyright (c) 2025 Mark·虎
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.hsxxherp.key.support.i18n.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hsxxherp.key.support.model.dto.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 模型：I18nLocaleDTO
 *
 * @author Mark·虎克（2486970363@qq.com）
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class I18nLocaleDTO extends BaseDto {

    /**
     * 语言环境代码
     */
    @TableField("locale_code")
    @Schema(name = "locale_code", description = "语言环境代码，用于唯一标识一个语言环境，例如 'zh-CN' 表示中文简体", example = "zh-CN")
    private String localeCode;

    /**
     * 语言环境的描述信息
     */
    @TableField("description")
    @Schema(name = "description", description = "语言环境的描述信息，用于对该语言环境进行简要说明", example = "中文简体语言环境")
    private String description;

    /**
     * 是否为默认语言环境
     */
    @TableField("is_default")
    @Schema(name = "is_default", description = "是否为默认语言环境，true 表示是默认语言环境，false 表示不是", example = "false")
    private Boolean isDefault;

    /**
     * 该语言环境是否启用
     */
    @TableField("is_enabled")
    @Schema(name = "is_enabled", description = "该语言环境是否启用，true 表示启用，false 表示禁用", example = "true")
    private Boolean isEnabled;
}